<?php
require_once('calendar/classes/tc_calendar.php');


?>


<div id="contains" style="background-color: #edf4f7;">

<div class="title"></div>
<form method="post" onsubmit="" name="f" action="#">
	<div class="main_content" style="min-height: 895px">
		<div class="tr_title">New project </div>
		<table class="tcontent" cellpadding="5" cellspacing="0" style="margin-top: 20px">
			<tr>
				<td class="col_left" width="15%"><?php echo 'Project code:';?></td>
				<td><span style="height:24px; width:100%; border:1px solid #c4c0c9"><?php echo $_REQUEST['pro_code'];?></span>
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Project name:'?></td>
				<td ><input type="text" id="project_name" name="project_name"  value="<?php echo $_REQUEST['pro_name'];?>"
					style="height: 24px; width: 100%; border: 1px solid #c4c0c9" />
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Manager'?></td>
				<td ><input type="text" id="project_manager" name="project_manager"  value="<?php echo $_REQUEST['pro_manager'];?>"
					style="height: 24px; width: 100%; border: 1px solid #c4c0c9" />
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Start Date'?></td>
				<td >
				<?php
				$myCalendar1 = new tc_calendar("start_date", true);
				$myCalendar1->setIcon("calendar/images/iconCalendar.gif");
				$d=split('-',$fromdate,3);
					
				$myCalendar1->setDate($d[2],$d[1],$d[0]);
				$myCalendar1->setPath("calendar/");
				$myCalendar1->setYearInterval(2010, 2015);
				$myCalendar1->dateAllow('2010-01-01', '2015-12-31');
				//$myCalendar1->setHeight(350);
				//$myCalendar1->autoSubmit(true, "form1");
				//$myCalendar1->setSpecificDate(array("2011-04-01", "2011-04-13", "2011-04-25"), 0, 'month');
				$myCalendar1->setOnChange("myChanged('test')");
				//$myCalendar->rtl = true;
				$myCalendar1->writeScript();
					
				//echo $myCalendar1->getDate();

				?>
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Complete date:'?></td>
				<td >
					<?php
				$myCalendar1 = new tc_calendar("complete_date", true);
				$myCalendar1->setIcon("calendar/images/iconCalendar.gif");
				$d=split('-',$fromdate,3);
					
				$myCalendar1->setDate($d[2],$d[1],$d[0]);
				$myCalendar1->setPath("calendar/");
				$myCalendar1->setYearInterval(2010, 2015);
				$myCalendar1->dateAllow('2010-01-01', '2015-12-31');
				//$myCalendar1->setHeight(350);
				//$myCalendar1->autoSubmit(true, "form1");
				//$myCalendar1->setSpecificDate(array("2011-04-01", "2011-04-13", "2011-04-25"), 0, 'month');
				$myCalendar1->setOnChange("myChanged('test')");
				//$myCalendar->rtl = true;
				$myCalendar1->writeScript();
					
				//echo $myCalendar1->getDate();

				?>
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Status:'?></td>
				<td ><input type="text" id="title" name="title"  value="<?php echo $_REQUEST['pro_status'];?>"
					style="height: 24px; width: 100%; border: 1px solid #c4c0c9" />
				</td>
			</tr>
			<tr>
				<td class="col_left"><?php echo 'Description:'?></td>
				<td>
				<textarea rows="8" cols="5" id="description" name="description" 
						style="width: 100%; border: 1px solid #c4c0c9"><?php echo $_REQUEST['pro_description'];?></textarea>
				</td>
			</tr>
		</table>
		
		<div align="right">
				<input class="buttonProject" type="button" style="margin: 5px 0;" value="Create" />
				<input class="buttonProject" type="button" style="margin: 5px 0;" value="Reset" />
			</div>

	</div>
	
</form>
</div>
